const mime = require('mime')

let fileName = 'style.css';

console.log(mime.getType('style.css'));//text/css
console.log(mime.getType('logo.png'));//image/png
console.log(mime.getType('main.js'));//application/javascript